<?php
 session_start();
$arr = $_SESSION['name'];
$comment_id=$_GET['commentid'];      
$sqll="INSERT INTO news_zan(user_name,comment_id)VALUES('$arr','$comment_id')";
 $link = mysqli_connect("127.0.0.1","root","","news");
 mysqli_set_charset($link, "utf8");
 $arr=mysqli_query($link, $sqll);

?>